Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nav): Open zendesk when clicking 'contact support' #86068

Merged
merged 3 commits into from
Mar 5, 2025

Conversation

malwilley
Copy link
Member

This matches the old behavior where in SaaS we would open the zendesk widget when clicking "contact support". We can't use the existing ZendeskLink component because we need to specify the dropdown menu item as an object, so I extracted some logic out to a util file.

@malwilley malwilley requested a review from a team February 27, 2025 21:37
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 27, 2025
label: t('Contact Support'),
externalHref: `mailto:${ConfigStore.get('supportEmail')}`,
},
...(contactSupportItem ? [contactSupportItem] : []),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the menuItemProp supports a disabled prop for this use case — I also used to use this ternary + destructuring combo for the issue view nav, but I think the disabled prop should achieve the same behavior.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it does support disabled, but I don't want this to show up at all if you're self hosted and don't have a support email in the config

Copy link
Member

@MichaelSun48 MichaelSun48 Mar 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my b I meant hidden. but now that I think about it, you'll still have to destructure the contactSupportItem anyways, so this might not make it much cleaner

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh I didn't actually know about that property!

Copy link

codecov bot commented Mar 4, 2025

Bundle Report

Changes will decrease total bundle size by 6.0kB (-0.01%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
app-webpack-bundle-array-push 42.46MB -6.0kB (-0.01%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: app-webpack-bundle-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
chunks/app_components_avatar_actorAvatar_tsx-app_components_avatar_avatarList_tsx-app_components_cha-7ec24d.*.js 7.04kB 1.39MB 0.51%
chunks/gsApp_registerHooks_tsx.*.js -6.53kB 349.31kB -1.84%
chunks/app_views_traces_content_tsx-node_modules_lodash_omitBy_js-node_modules_lodash_partialRight_j-d4a98b.*.js -6.51kB 130.68kB -4.75%
chunks/app_components_feedback_widget_us*kWidget_tsx-app_views_projectDetail_index_tsx.38dc1b77f30214c645a2.js (New) 125.93kB 125.93kB 100.0% 🚀
chunks/app_components_charts_eventsRequest_tsx-app_components_feedback_widget_us*kWidget_tsx--fbb1b9.2b6b8bcd47d7b42004bb.js (New) 31.1kB 31.1kB 100.0% 🚀
chunks/app_components_feedback_widget_us*kWidget_tsx-app_views_performance_transactionSummary-51d702.ae3352fbc0a2800331fe.js (New) 25.7kB 25.7kB 100.0% 🚀
chunks/app_components_feedback_widget_us*kWidget_tsx-app_components_performance_transactionSe-feae7d.d8487ded60187c6d7690.js (New) 24.18kB 24.18kB 100.0% 🚀
chunks/app_components_feedback_widget_us*kWidget_tsx-app_utils_discover_discoverQuery_tsx-app-c5fefe.0f6a1be668f892232eb6.js (New) 17.41kB 17.41kB 100.0% 🚀
chunks/app_components_feedback_widget_us*kWidget_tsx-app_components_gridEditable_sortLink_tsx-d372f4.a5044daa226231cd17c0.js (New) 16.21kB 16.21kB 100.0% 🚀
chunks/app_components_feedback_widget_us*kWidget_tsx-app_components_performance_transactionSe-f61270.98bb9cfb55de82fa7b54.js (New) 13.36kB 13.36kB 100.0% 🚀
chunks/app_components_charts_lineChart_tsx-app_components_feedback_widget_us*kWidget_tsx-app_-26fc43.4dd81a423d1819bd5f82.js (New) 12.34kB 12.34kB 100.0% 🚀
chunks/app_components_feedback_widget_us*kWidget_tsx-app_views_projectDetail_index_tsx.0ef78d620e4cd925d623.js (Deleted) -125.93kB 0 bytes -100.0% 🗑️
chunks/app_components_charts_eventsRequest_tsx-app_components_feedback_widget_us*kWidget_tsx--fbb1b9.919a41433b4c0163ec08.js (Deleted) -31.1kB 0 bytes -100.0% 🗑️
chunks/app_components_feedback_widget_us*kWidget_tsx-app_views_performance_transactionSummary-51d702.7cb45dc3b13017f1bc84.js (Deleted) -25.7kB 0 bytes -100.0% 🗑️
chunks/app_components_feedback_widget_us*kWidget_tsx-app_components_performance_transactionSe-feae7d.689190838347b3334268.js (Deleted) -24.18kB 0 bytes -100.0% 🗑️
chunks/app_components_feedback_widget_us*kWidget_tsx-app_utils_discover_discoverQuery_tsx-app-c5fefe.249b0c9b0eea84c2ebfe.js (Deleted) -17.41kB 0 bytes -100.0% 🗑️
chunks/app_components_feedback_widget_us*kWidget_tsx-app_components_gridEditable_sortLink_tsx-d372f4.1c8fa20f8027ed2835fb.js (Deleted) -16.21kB 0 bytes -100.0% 🗑️
chunks/app_components_feedback_widget_us*kWidget_tsx-app_components_performance_transactionSe-f61270.0816d03910b60fc42c80.js (Deleted) -13.36kB 0 bytes -100.0% 🗑️
chunks/app_components_charts_lineChart_tsx-app_components_feedback_widget_us*kWidget_tsx-app_-26fc43.de3b70864215e560a709.js (Deleted) -12.34kB 0 bytes -100.0% 🗑️

Files in chunks/app_components_avatar_actorAvatar_tsx-app_components_avatar_avatarList_tsx-app_components_cha-7ec24d.*.js:

  • ./app/utils/zendesk.tsx → Total Size: 352 bytes

Files in chunks/gsApp_registerHooks_tsx.*.js:

  • ./gsApp/components/zendeskLink.tsx → Total Size: 1.57kB

@malwilley malwilley enabled auto-merge (squash) March 5, 2025 17:21
@malwilley malwilley merged commit 19ae81d into master Mar 5, 2025
42 checks passed
@malwilley malwilley deleted the malwilley/feat/nav-support-zendesk branch March 5, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants